home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MATCHES(1) UNIX System V (local) MATCHES(1)
-
-
-
- NAME
- matches - test if string2 is contained in string1
-
- SYNOPSIS
- matches string1 string2
-
- DESCRIPTION
- Matches returns a 0 if string2 is contained in string1,
- otherwise it returns a 1.
-
- Matches is designed to be used by Pcomm in a shell script
- for automatically logging a user onto a remote system.
-
- EXAMPLE
- # read some input
- read junk
- # test to see the string matches 'login failed'
- matches $junk 'login failed'
- # test the exit code of the matches command
- if [ $? -eq 0 ]
- then
- exit 1
- fi
-
- SEE ALSO
- pcomm(1), waitfor(1), modem_break(1), Pcomm Reference Manual
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 1 (printed 12/31/89)
-
-
-
-